﻿@model Webdiyer.WebControls.Mvc.PagedList<RBS.Core.Model.P_Advertis_Payment>
<!--列表--> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
  <tr>
      <th width="8%">选择</th> 
      	<th align="left">类型</th>
      <th align="left"> 面额(元)</th>
					<th align="left"> 开始时间</th>
					<th align="left"> 失效时间</th>
                    <th align="left"> 数量</th>
                    <th align="left"> 已领取数</th>
                    <th align="left"> 已使用数</th>
					<th align="left"> 人群</th>
					<th align="left"> 获取规则</th>
					<th align="left"> 使用规则</th>
					<th align="left"> 是否跨酒店</th> 
		   <th align="left"> 状态</th>
   
  </tr> 
@if (null != ViewData.Model)
{
    foreach (var item in ViewData.Model)
    {
  <tr>
    <td align="center"> 
         <input type="checkbox" id="chkId" value="@item.Id" class="checkall" style="vertical-align: middle;" /> 
                <input id="hidId" type="hidden" value="@item.Id"/> 
    </td>
        	 <td align="left">  
           @{
               var DeedType = "";
        switch (item.DeedType)
        {
                case 1:
                DeedType = "送菜券";
                break;
                       case 2:
                DeedType = "消费券";
                break;
                   case 3:
                DeedType = "广告券";
                break;
                

        }
        @DeedType
    }
			    </td>	 
      	<td align="left"> 
			     @Html.DisplayFor(modelItem => item.Denomination)
			</td>
      
					<td align="left"> 
			     @(string.Format("{0:yyyy-MM-dd}",item.ValidStartTime))
			</td>
					<td align="left">  @(string.Format("{0:yyyy-MM-dd}",item.ValidEndTime)) 
			  
			</td>
      <td align="left"> 
           @Html.DisplayFor(modelItem => item.Quantity)
      </td>
      <td align="left"> 
          @Html.DisplayFor(modelItem => item.Gift)
      </td>
      	<td align="left"> 
			    @Html.DisplayFor(modelItem => item.Used)
			</td>
					<td align="left"> 
			     @Html.DisplayFor(modelItem => item.Crowd)
			</td>
					<td align="left"> 
			     @Html.DisplayFor(modelItem => item.AccessRules)
			</td>
					<td align="left"> 
			     @Html.DisplayFor(modelItem => item.UseRules)
			</td>
      <td align="left">
          @( item.IsCrossHotel==0?"否":"是")  
      </td> 
      <td align="left">
          @{
              var status = "正常";
              switch (item.DeedStatus)
              {
                  case 1:
                      status = "已作废";
                      break;
                  case 2:
                      status = "审核中";
                      break;
              }
              @status;
           }
         
      </td>   
      
  </tr>
  } 
 }
</table> 
<!--/列表--> 